# 定义这个agent的名称
a1.sources = r1
a1.sinks = k1
a1.channels = c1

# 配置源，用于监控文件
a1.sources.r1.type = exec
a1.sources.r1.command = tail -F /opt/logs/hism-record-service/elk-*-*.log
a1.sources.r1.channels = c1

# 配置通道，使用内存
a1.channels.c1.type = memory
a1.channels.c1.capacity = 1000
a1.channels.c1.transactionCapacity = 100

# 配置接收器，指定Kafka作为目的地
a1.sinks.k1.type = org.apache.flume.sink.kafka.KafkaSink
a1.sinks.k1.kafka.bootstrap.servers = node101:9092
a1.sinks.k1.kafka.topic = host_zzdetail
a1.sinks.k1.kafka.flumeBatchSize = 20
a1.sinks.k1.kafka.producer.acks = 1
a1.sinks.k1.channel = c1
